package cn.tom.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class Order {
    private Integer ordid;
//    private Integer uid;         //用户id
    private XUser myUser;
    private Double amount;       //应付的金额
    private Integer pay_status;  //付款 0 未付 1已经付款
    private Long tpay;              //付款时间
    private Integer ship_status;  //发货  0 未发 1   已经收货  2
    private String shipno;          //发货单号 日期 + 订单主键
    private String ship2name;       //收件人姓名
    private String  ship2phone;     //收件人电话
    private String ship2addr;       //收件人地址
    private String shipper;         //承运人
    private Date tship;             //发货时间
    private Date tsign;             //签收时间
    private Date tcreate;           //创建订单时间
    // 一对多   订单头  和 订单明细
    private List<Orditem>  orditems = new ArrayList<>(); //订单明细

    public Order() {
        this.ordid = 0;
        this.myUser = new XUser();
        this.amount = 0.0;
        this.pay_status = 0;
        this.ship_status = 0;
        this.shipno = "0000000000";
        this.ship2name = "";
        this.ship2phone = "";
        this.ship2addr = "";
        this.shipper = "";
    }


}
